from dataclasses import dataclass

# tag::CLUBMEMBER[]
@dataclass
class ClubMember:
    name: str
    guests: list = []  # 不允许使用可变的默认 '[]'。使用 'default_factory'
# end::CLUBMEMBER[]
